﻿using Abp.Application.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ZhaoxiPortal.User
{
    public class UserAppService : ApplicationService, IUserAppService
    {
        public string Get()
        {
            return "wanglei";
        }

        public string Post(string name)
        {
            Task.Run(() =>
            {
                for (int i = 0; i < 10; i++)
                {
                    Console.WriteLine(i);
                    Thread.Sleep(1000);
                }
            });
            return name;
        }
    }
}
